﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace WindowsFormsApplication5
{
    public class Bonus: Abstractbarrier
    {
         private Rectangle bonus;
         
         private string dir = " ";
         private string fulldir = " ";
         private string bonus1 = "bonus1.bmp";
         private string bonus2 = " ";

         public Rectangle RBonus
         {
             get { return bonus; }
             set { bonus = value; }
         }

         public string BonusName1
         {
             get
             {
                 return bonus1;
             }
             private set { }
         }

         public Bonus(int x, int y, string dir)
         {
             data = new Data();
             bonus = new Rectangle();
             bonus.Size = new Size(data.tank_width, data.tank_height);
             bonus.Location = new Point(x, y);
             this.dir = dir;
         }

         public void Show(Control picturebox)
         {

         }



        public Rectangle TypeBonus
        {
            get { return bonus; }
            set { bonus = value; }
        }

        public override void PrintLocation()
        {
            Str = " ";
            Str = "Position X:" + Convert.ToString(TypeBonus.Location.X) + "  Y:" + Convert.ToString(TypeBonus.Location.Y);
        }

        public override void PrintParameters()
        {
            Str = " ";
            Str = "Parameters Width:" + Convert.ToString(TypeBonus.Width) + "  Height:" + Convert.ToString(TypeBonus.Height);
        }

     
    }
}
